Interface sbktech.tools.hashjava.bytecode.BytecodeFactory
All Packages Class Hierarchy This Package Previous Next Index
Interface sbktech.tools.hashjava.bytecode.BytecodeFactory
- public interface BytecodeFactory
- extends Object
This interface is used to enable the environment to read or write
bytecode streams when necessary
- Author:
- $Author: kbs $
-
readClass(String)
- This method should be implemented so that the environment
can get hold of a way to read classes based on current input.
-
writeClass(String)
- This one lets the environment write out class files when its
finished obfuscating classes.
readClass
public abstract DataInput readClass(String className) throws IOException
- This method should be implemented so that the environment
can get hold of a way to read classes based on current input.
Returning a null tells the environment to ignore reading in
the class data. You can also add information with the addClass()
method in Environment.
- Parameters:
- className - name for the class to be loaded
- Throws: IOexception
- should throw any subclass of IOException if the
class cannot be loaded
- See Also:
- addClass
writeClass
public abstract DataOutput writeClass(String className) throws IOException
- This one lets the environment write out class files when its
finished obfuscating classes. This is the only way provided
to write out classes, so you must do something
useful here to get the altered classes.
- Parameters:
- className - name for the class that needs to be written out.
- Throws: IOException
- should throw any subclass of IOException if
the class cannot be written out
- See Also:
- dump
All Packages Class Hierarchy This Package Previous Next Index